<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
<meta http-equiv="X-UA-Compatible" content="IE=9"/>
<meta name="generator" content="Doxygen 1.8.6"/>
<title>UniMRCP: mrcp_session.h Source File</title>
<link href="tabs.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="jquery.js"></script>
<script type="text/javascript" src="dynsections.js"></script>
<link href="search/search.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="search/search.js"></script>
<script type="text/javascript">
  $(document).ready(function() { searchBox.OnSelectItem(0); });
</script>
<link href="doxygen.css" rel="stylesheet" type="text/css" />
</head>
<body>
<div id="top"><!-- do not remove this div, it is closed by doxygen! -->
<div id="titlearea">
<table cellspacing="0" cellpadding="0">
 <tbody>
 <tr style="height: 56px;">
  <td style="padding-left: 0.5em;">
   <div id="projectname">UniMRCP
   &#160;<span id="projectnumber">1.5.0</span>
   </div>
  </td>
 </tr>
 </tbody>
</table>
</div>
<!-- end header part -->
<!-- Generated by Doxygen 1.8.6 -->
<script type="text/javascript">
var searchBox = new SearchBox("searchBox", "search",false,'Search');
</script>
  <div id="navrow1" class="tabs">
    <ul class="tablist">
      <li><a href="index.html"><span>Main&#160;Page</span></a></li>
      <li><a href="pages.html"><span>Related&#160;Pages</span></a></li>
      <li><a href="annotated.html"><span>Data&#160;Structures</span></a></li>
      <li class="current"><a href="files.html"><span>Files</span></a></li>
      <li>
        <div id="MSearchBox" class="MSearchBoxInactive">
        <span class="left">
          <img id="MSearchSelect" src="search/mag_sel.png"
               onmouseover="return searchBox.OnSearchSelectShow()"
               onmouseout="return searchBox.OnSearchSelectHide()"
               alt=""/>
          <input type="text" id="MSearchField" value="Search" accesskey="S"
               onfocus="searchBox.OnSearchFieldFocus(true)" 
               onblur="searchBox.OnSearchFieldFocus(false)" 
               onkeyup="searchBox.OnSearchFieldChange(event)"/>
          </span><span class="right">
            <a id="MSearchClose" href="javascript:searchBox.CloseResultsWindow()"><img id="MSearchCloseImg" border="0" src="search/close.png" alt=""/></a>
          </span>
        </div>
      </li>
    </ul>
  </div>
  <div id="navrow2" class="tabs2">
    <ul class="tablist">
      <li><a href="files.html"><span>File&#160;List</span></a></li>
      <li><a href="globals.html"><span>Globals</span></a></li>
    </ul>
  </div>
<!-- window showing the filter options -->
<div id="MSearchSelectWindow"
     onmouseover="return searchBox.OnSearchSelectShow()"
     onmouseout="return searchBox.OnSearchSelectHide()"
     onkeydown="return searchBox.OnSearchSelectKey(event)">
<a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(0)"><span class="SelectionMark">&#160;</span>All</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(1)"><span class="SelectionMark">&#160;</span>Data Structures</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(2)"><span class="SelectionMark">&#160;</span>Files</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(3)"><span class="SelectionMark">&#160;</span>Functions</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(4)"><span class="SelectionMark">&#160;</span>Variables</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(5)"><span class="SelectionMark">&#160;</span>Typedefs</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(6)"><span class="SelectionMark">&#160;</span>Enumerations</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(7)"><span class="SelectionMark">&#160;</span>Enumerator</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(8)"><span class="SelectionMark">&#160;</span>Macros</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(9)"><span class="SelectionMark">&#160;</span>Pages</a></div>

<!-- iframe showing the search results (closed by default) -->
<div id="MSearchResultsWindow">
<iframe src="javascript:void(0)" frameborder="0" 
        name="MSearchResults" id="MSearchResults">
</iframe>
</div>

<div id="nav-path" class="navpath">
  <ul>
<li class="navelem"><a class="el" href="dir_6719ab1f1f7655efc2fa43f7eb574fd1.html">libs</a></li><li class="navelem"><a class="el" href="dir_0c98097257c2ae0d9b869d8640598357.html">mrcp-signaling</a></li><li class="navelem"><a class="el" href="dir_37247a4dbe52d673a7d6d4bedd51464d.html">include</a></li>  </ul>
</div>
</div><!-- top -->
<div class="header">
  <div class="headertitle">
<div class="title">mrcp_session.h</div>  </div>
</div><!--header-->
<div class="contents">
<a href="mrcp__session_8h.html">Go to the documentation of this file.</a><div class="fragment"><div class="line"><a name="l00001"></a><span class="lineno">    1</span>&#160;<span class="comment">/*</span></div>
<div class="line"><a name="l00002"></a><span class="lineno">    2</span>&#160;<span class="comment"> * Copyright 2008-2015 Arsen Chaloyan</span></div>
<div class="line"><a name="l00003"></a><span class="lineno">    3</span>&#160;<span class="comment"> *</span></div>
<div class="line"><a name="l00004"></a><span class="lineno">    4</span>&#160;<span class="comment"> * Licensed under the Apache License, Version 2.0 (the &quot;License&quot;);</span></div>
<div class="line"><a name="l00005"></a><span class="lineno">    5</span>&#160;<span class="comment"> * you may not use this file except in compliance with the License.</span></div>
<div class="line"><a name="l00006"></a><span class="lineno">    6</span>&#160;<span class="comment"> * You may obtain a copy of the License at</span></div>
<div class="line"><a name="l00007"></a><span class="lineno">    7</span>&#160;<span class="comment"> *</span></div>
<div class="line"><a name="l00008"></a><span class="lineno">    8</span>&#160;<span class="comment"> *     http://www.apache.org/licenses/LICENSE-2.0</span></div>
<div class="line"><a name="l00009"></a><span class="lineno">    9</span>&#160;<span class="comment"> *</span></div>
<div class="line"><a name="l00010"></a><span class="lineno">   10</span>&#160;<span class="comment"> * Unless required by applicable law or agreed to in writing, software</span></div>
<div class="line"><a name="l00011"></a><span class="lineno">   11</span>&#160;<span class="comment"> * distributed under the License is distributed on an &quot;AS IS&quot; BASIS,</span></div>
<div class="line"><a name="l00012"></a><span class="lineno">   12</span>&#160;<span class="comment"> * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.</span></div>
<div class="line"><a name="l00013"></a><span class="lineno">   13</span>&#160;<span class="comment"> * See the License for the specific language governing permissions and</span></div>
<div class="line"><a name="l00014"></a><span class="lineno">   14</span>&#160;<span class="comment"> * limitations under the License.</span></div>
<div class="line"><a name="l00015"></a><span class="lineno">   15</span>&#160;<span class="comment"> */</span></div>
<div class="line"><a name="l00016"></a><span class="lineno">   16</span>&#160;</div>
<div class="line"><a name="l00017"></a><span class="lineno">   17</span>&#160;<span class="preprocessor">#ifndef MRCP_SESSION_H</span></div>
<div class="line"><a name="l00018"></a><span class="lineno">   18</span>&#160;<span class="preprocessor"></span><span class="preprocessor">#define MRCP_SESSION_H</span></div>
<div class="line"><a name="l00019"></a><span class="lineno">   19</span>&#160;<span class="preprocessor"></span><span class="comment"></span></div>
<div class="line"><a name="l00020"></a><span class="lineno">   20</span>&#160;<span class="comment">/**</span></div>
<div class="line"><a name="l00021"></a><span class="lineno">   21</span>&#160;<span class="comment"> * @file mrcp_session.h</span></div>
<div class="line"><a name="l00022"></a><span class="lineno">   22</span>&#160;<span class="comment"> * @brief Abstract MRCP Session</span></div>
<div class="line"><a name="l00023"></a><span class="lineno">   23</span>&#160;<span class="comment"> */</span> </div>
<div class="line"><a name="l00024"></a><span class="lineno">   24</span>&#160;</div>
<div class="line"><a name="l00025"></a><span class="lineno">   25</span>&#160;<span class="preprocessor">#include &quot;<a class="code" href="mrcp__sig__types_8h.html">mrcp_sig_types.h</a>&quot;</span></div>
<div class="line"><a name="l00026"></a><span class="lineno">   26</span>&#160;<span class="preprocessor">#include &quot;<a class="code" href="mpf__types_8h.html">mpf_types.h</a>&quot;</span></div>
<div class="line"><a name="l00027"></a><span class="lineno">   27</span>&#160;<span class="preprocessor">#include &quot;<a class="code" href="apt__string_8h.html">apt_string.h</a>&quot;</span></div>
<div class="line"><a name="l00028"></a><span class="lineno">   28</span>&#160;</div>
<div class="line"><a name="l00029"></a><span class="lineno">   29</span>&#160;<a class="code" href="apt_8h.html#ad3d792bfc75893affad257781ea46e55">APT_BEGIN_EXTERN_C</a></div>
<div class="line"><a name="l00030"></a><span class="lineno">   30</span>&#160;<span class="comment"></span></div>
<div class="line"><a name="l00031"></a><span class="lineno">   31</span>&#160;<span class="comment">/** Macro to log session pointers */</span></div>
<div class="line"><a name="l00032"></a><span class="lineno"><a class="line" href="mrcp__session_8h.html#a1f399c8180385f4bb5eadec208264ede">   32</a></span>&#160;<span class="preprocessor">#define MRCP_SESSION_PTR(session) (session)</span></div>
<div class="line"><a name="l00033"></a><span class="lineno">   33</span>&#160;<span class="preprocessor"></span><span class="comment">/** Macro to log session string identifiers */</span></div>
<div class="line"><a name="l00034"></a><span class="lineno"><a class="line" href="mrcp__session_8h.html#ab804888805fa24448a2552ea1790a834">   34</a></span>&#160;<span class="preprocessor">#define MRCP_SESSION_SID(session) \</span></div>
<div class="line"><a name="l00035"></a><span class="lineno">   35</span>&#160;<span class="preprocessor">    (session)-&gt;id.buf ? (session)-&gt;id.buf : &quot;new&quot;</span></div>
<div class="line"><a name="l00036"></a><span class="lineno">   36</span>&#160;<span class="preprocessor"></span><span class="comment"></span></div>
<div class="line"><a name="l00037"></a><span class="lineno">   37</span>&#160;<span class="comment">/** Macro to log session pointers and string identifiers */</span></div>
<div class="line"><a name="l00038"></a><span class="lineno"><a class="line" href="mrcp__session_8h.html#ac149a95d25a8f0ee41c8ce7ecb8b44f8">   38</a></span>&#160;<span class="preprocessor">#define MRCP_SESSION_PTRSID(session) \</span></div>
<div class="line"><a name="l00039"></a><span class="lineno">   39</span>&#160;<span class="preprocessor">    MRCP_SESSION_PTR(session), MRCP_SESSION_SID(session)</span></div>
<div class="line"><a name="l00040"></a><span class="lineno">   40</span>&#160;<span class="preprocessor"></span><span class="comment"></span></div>
<div class="line"><a name="l00041"></a><span class="lineno">   41</span>&#160;<span class="comment">/** MRCP session request vtable declaration */</span></div>
<div class="line"><a name="l00042"></a><span class="lineno"><a class="line" href="mrcp__session_8h.html#a35e0e86027033004c4a9936040cdd71f">   42</a></span>&#160;<span class="keyword">typedef</span> <span class="keyword">struct </span><a class="code" href="structmrcp__session__request__vtable__t.html">mrcp_session_request_vtable_t</a> <a class="code" href="structmrcp__session__request__vtable__t.html">mrcp_session_request_vtable_t</a>;<span class="comment"></span></div>
<div class="line"><a name="l00043"></a><span class="lineno">   43</span>&#160;<span class="comment">/** MRCP session response vtable declaration */</span></div>
<div class="line"><a name="l00044"></a><span class="lineno"><a class="line" href="mrcp__session_8h.html#a2327cb1bc2f09614b1678550618562bb">   44</a></span>&#160;<span class="keyword">typedef</span> <span class="keyword">struct </span><a class="code" href="structmrcp__session__response__vtable__t.html">mrcp_session_response_vtable_t</a> <a class="code" href="structmrcp__session__response__vtable__t.html">mrcp_session_response_vtable_t</a>;<span class="comment"></span></div>
<div class="line"><a name="l00045"></a><span class="lineno">   45</span>&#160;<span class="comment">/** MRCP session event vtable declaration */</span></div>
<div class="line"><a name="l00046"></a><span class="lineno"><a class="line" href="mrcp__session_8h.html#a07d194d350b1e5352d1f6b28bbe8b424">   46</a></span>&#160;<span class="keyword">typedef</span> <span class="keyword">struct </span><a class="code" href="structmrcp__session__event__vtable__t.html">mrcp_session_event_vtable_t</a> <a class="code" href="structmrcp__session__event__vtable__t.html">mrcp_session_event_vtable_t</a>;</div>
<div class="line"><a name="l00047"></a><span class="lineno">   47</span>&#160;<span class="comment"></span></div>
<div class="line"><a name="l00048"></a><span class="lineno">   48</span>&#160;<span class="comment">/** MRCP session */</span></div>
<div class="line"><a name="l00049"></a><span class="lineno"><a class="line" href="structmrcp__session__t.html">   49</a></span>&#160;<span class="keyword">struct </span><a class="code" href="structmrcp__session__t.html">mrcp_session_t</a> {<span class="comment"></span></div>
<div class="line"><a name="l00050"></a><span class="lineno">   50</span>&#160;<span class="comment">    /** Memory pool to allocate memory from */</span></div>
<div class="line"><a name="l00051"></a><span class="lineno"><a class="line" href="structmrcp__session__t.html#a425d72d01799006ae560a8e27ad61773">   51</a></span>&#160;    apr_pool_t       *<a class="code" href="structmrcp__session__t.html#a425d72d01799006ae560a8e27ad61773">pool</a>;<span class="comment"></span></div>
<div class="line"><a name="l00052"></a><span class="lineno">   52</span>&#160;<span class="comment">    /** Whether the memory pool is self-owned or not */</span></div>
<div class="line"><a name="l00053"></a><span class="lineno"><a class="line" href="structmrcp__session__t.html#a7c6859deb48d119ff30cd1abeede0b99">   53</a></span>&#160;    <a class="code" href="apt_8h.html#ac7b6d8df47829d778eb598e1cc52cc2a">apt_bool_t</a>        <a class="code" href="structmrcp__session__t.html#a7c6859deb48d119ff30cd1abeede0b99">self_owned</a>;<span class="comment"></span></div>
<div class="line"><a name="l00054"></a><span class="lineno">   54</span>&#160;<span class="comment">    /** External object associated with session */</span></div>
<div class="line"><a name="l00055"></a><span class="lineno"><a class="line" href="structmrcp__session__t.html#a18bf8d2c47f2ed1d0b0effe5f7298e0d">   55</a></span>&#160;    <span class="keywordtype">void</span>             *<a class="code" href="structmrcp__session__t.html#a18bf8d2c47f2ed1d0b0effe5f7298e0d">obj</a>;<span class="comment"></span></div>
<div class="line"><a name="l00056"></a><span class="lineno">   56</span>&#160;<span class="comment">    /** External logger object associated with session */</span></div>
<div class="line"><a name="l00057"></a><span class="lineno"><a class="line" href="structmrcp__session__t.html#a480aca1554ad893e685f8ced2f37b3a2">   57</a></span>&#160;    <span class="keywordtype">void</span>             *<a class="code" href="structmrcp__session__t.html#a480aca1554ad893e685f8ced2f37b3a2">log_obj</a>;<span class="comment"></span></div>
<div class="line"><a name="l00058"></a><span class="lineno">   58</span>&#160;<span class="comment">    /** Informative name of the session used for debugging */</span></div>
<div class="line"><a name="l00059"></a><span class="lineno"><a class="line" href="structmrcp__session__t.html#ab553b6c063bf1e619a80cf9319dab681">   59</a></span>&#160;    <span class="keyword">const</span> <span class="keywordtype">char</span>       *<a class="code" href="structmrcp__session__t.html#ab553b6c063bf1e619a80cf9319dab681">name</a>;</div>
<div class="line"><a name="l00060"></a><span class="lineno">   60</span>&#160;<span class="comment"></span></div>
<div class="line"><a name="l00061"></a><span class="lineno">   61</span>&#160;<span class="comment">    /** Signaling (session managment) agent */</span></div>
<div class="line"><a name="l00062"></a><span class="lineno"><a class="line" href="structmrcp__session__t.html#a2be2e6162a3f8be7c373b8b5150502a3">   62</a></span>&#160;    <a class="code" href="structmrcp__sig__agent__t.html">mrcp_sig_agent_t</a>          *<a class="code" href="structmrcp__session__t.html#a2be2e6162a3f8be7c373b8b5150502a3">signaling_agent</a>;<span class="comment"></span></div>
<div class="line"><a name="l00063"></a><span class="lineno">   63</span>&#160;<span class="comment">    /** MRCPv2 connection agent, if any */</span></div>
<div class="line"><a name="l00064"></a><span class="lineno"><a class="line" href="structmrcp__session__t.html#a6dd01b010912fcff7b9a3f355b543733">   64</a></span>&#160;    <span class="keywordtype">void</span>                      *<a class="code" href="structmrcp__session__t.html#a6dd01b010912fcff7b9a3f355b543733">connection_agent</a>;<span class="comment"></span></div>
<div class="line"><a name="l00065"></a><span class="lineno">   65</span>&#160;<span class="comment">    /** Media processing engine */</span></div>
<div class="line"><a name="l00066"></a><span class="lineno"><a class="line" href="structmrcp__session__t.html#a0bb429af973c2ddf7e641158ae137222">   66</a></span>&#160;    <a class="code" href="mpf__types_8h.html#ad09bd8504c5367e458c1d0d19b4aa17e">mpf_engine_t</a>              *<a class="code" href="structmrcp__session__t.html#a0bb429af973c2ddf7e641158ae137222">media_engine</a>;<span class="comment"></span></div>
<div class="line"><a name="l00067"></a><span class="lineno">   67</span>&#160;<span class="comment">    /** RTP termination factory */</span></div>
<div class="line"><a name="l00068"></a><span class="lineno"><a class="line" href="structmrcp__session__t.html#a7d521769ff50b571a2c2c872f0b07a2b">   68</a></span>&#160;    <a class="code" href="structmpf__termination__factory__t.html">mpf_termination_factory_t</a> *<a class="code" href="structmrcp__session__t.html#a7d521769ff50b571a2c2c872f0b07a2b">rtp_factory</a>;</div>
<div class="line"><a name="l00069"></a><span class="lineno">   69</span>&#160;<span class="comment"></span></div>
<div class="line"><a name="l00070"></a><span class="lineno">   70</span>&#160;<span class="comment">    /** Session identifier */</span></div>
<div class="line"><a name="l00071"></a><span class="lineno"><a class="line" href="structmrcp__session__t.html#a10e754ae08933f85ffb74a4410578884">   71</a></span>&#160;    <a class="code" href="structapt__str__t.html">apt_str_t</a>         <a class="code" href="structmrcp__session__t.html#a10e754ae08933f85ffb74a4410578884">id</a>;<span class="comment"></span></div>
<div class="line"><a name="l00072"></a><span class="lineno">   72</span>&#160;<span class="comment">    /** Last request identifier sent for client, received for server */</span></div>
<div class="line"><a name="l00073"></a><span class="lineno"><a class="line" href="structmrcp__session__t.html#ab91d428ad19a1635c34fc42af93f4a49">   73</a></span>&#160;    <a class="code" href="mrcp__types_8h.html#ae3b886f13ee1aaa73314f299828e69d1">mrcp_request_id</a>   <a class="code" href="structmrcp__session__t.html#ab91d428ad19a1635c34fc42af93f4a49">last_request_id</a>;</div>
<div class="line"><a name="l00074"></a><span class="lineno">   74</span>&#160;<span class="comment"></span></div>
<div class="line"><a name="l00075"></a><span class="lineno">   75</span>&#160;<span class="comment">    /** Virtual request methods */</span></div>
<div class="line"><a name="l00076"></a><span class="lineno"><a class="line" href="structmrcp__session__t.html#a77782ad02fb5edff9a12037435fc4c6c">   76</a></span>&#160;    <span class="keyword">const</span> <a class="code" href="structmrcp__session__request__vtable__t.html">mrcp_session_request_vtable_t</a>  *<a class="code" href="structmrcp__session__t.html#a77782ad02fb5edff9a12037435fc4c6c">request_vtable</a>;<span class="comment"></span></div>
<div class="line"><a name="l00077"></a><span class="lineno">   77</span>&#160;<span class="comment">    /** Virtual response methods */</span></div>
<div class="line"><a name="l00078"></a><span class="lineno"><a class="line" href="structmrcp__session__t.html#a9b4b041b55d72e095f85622ca814a50e">   78</a></span>&#160;    <span class="keyword">const</span> <a class="code" href="structmrcp__session__response__vtable__t.html">mrcp_session_response_vtable_t</a> *<a class="code" href="structmrcp__session__t.html#a9b4b041b55d72e095f85622ca814a50e">response_vtable</a>;<span class="comment"></span></div>
<div class="line"><a name="l00079"></a><span class="lineno">   79</span>&#160;<span class="comment">    /** Virtual event methods */</span></div>
<div class="line"><a name="l00080"></a><span class="lineno"><a class="line" href="structmrcp__session__t.html#a77b1eda02559e457d480e3a679382db1">   80</a></span>&#160;    <span class="keyword">const</span> <a class="code" href="structmrcp__session__event__vtable__t.html">mrcp_session_event_vtable_t</a>    *<a class="code" href="structmrcp__session__t.html#a77b1eda02559e457d480e3a679382db1">event_vtable</a>;</div>
<div class="line"><a name="l00081"></a><span class="lineno">   81</span>&#160;};</div>
<div class="line"><a name="l00082"></a><span class="lineno">   82</span>&#160;</div>
<div class="line"><a name="l00083"></a><span class="lineno">   83</span>&#160;<span class="comment"></span></div>
<div class="line"><a name="l00084"></a><span class="lineno">   84</span>&#160;<span class="comment">/** MRCP session request vtable */</span></div>
<div class="line"><a name="l00085"></a><span class="lineno"><a class="line" href="structmrcp__session__request__vtable__t.html">   85</a></span>&#160;<span class="keyword">struct </span><a class="code" href="structmrcp__session__request__vtable__t.html">mrcp_session_request_vtable_t</a> {<span class="comment"></span></div>
<div class="line"><a name="l00086"></a><span class="lineno">   86</span>&#160;<span class="comment">    /** Offer session descriptor */</span></div>
<div class="line"><a name="l00087"></a><span class="lineno"><a class="line" href="structmrcp__session__request__vtable__t.html#ada6b51fcc9d516322c93cbef2781c1b9">   87</a></span>&#160;    <a class="code" href="apt_8h.html#ac7b6d8df47829d778eb598e1cc52cc2a">apt_bool_t</a> (*<a class="code" href="structmrcp__session__request__vtable__t.html#ada6b51fcc9d516322c93cbef2781c1b9">offer</a>)(<a class="code" href="structmrcp__session__t.html">mrcp_session_t</a> *session, <a class="code" href="structmrcp__session__descriptor__t.html">mrcp_session_descriptor_t</a> *descriptor);<span class="comment"></span></div>
<div class="line"><a name="l00088"></a><span class="lineno">   88</span>&#160;<span class="comment">    /** Terminate session */</span></div>
<div class="line"><a name="l00089"></a><span class="lineno"><a class="line" href="structmrcp__session__request__vtable__t.html#a985124505396d6370b76c408cfbb8c80">   89</a></span>&#160;    <a class="code" href="apt_8h.html#ac7b6d8df47829d778eb598e1cc52cc2a">apt_bool_t</a> (*<a class="code" href="structmrcp__session__request__vtable__t.html#a985124505396d6370b76c408cfbb8c80">terminate</a>)(<a class="code" href="structmrcp__session__t.html">mrcp_session_t</a> *session);<span class="comment"></span></div>
<div class="line"><a name="l00090"></a><span class="lineno">   90</span>&#160;<span class="comment">    /** Control session (MRCPv1 only) */</span></div>
<div class="line"><a name="l00091"></a><span class="lineno"><a class="line" href="structmrcp__session__request__vtable__t.html#aa8c49314428ece1676bbb7b20f72292b">   91</a></span>&#160;    <a class="code" href="apt_8h.html#ac7b6d8df47829d778eb598e1cc52cc2a">apt_bool_t</a> (*<a class="code" href="structmrcp__session__request__vtable__t.html#aa8c49314428ece1676bbb7b20f72292b">control</a>)(<a class="code" href="structmrcp__session__t.html">mrcp_session_t</a> *session, <a class="code" href="structmrcp__message__t.html">mrcp_message_t</a> *message);<span class="comment"></span></div>
<div class="line"><a name="l00092"></a><span class="lineno">   92</span>&#160;<span class="comment">    /** Discover resources */</span></div>
<div class="line"><a name="l00093"></a><span class="lineno"><a class="line" href="structmrcp__session__request__vtable__t.html#a5e5e195013c6bcf140d746c2006a8b98">   93</a></span>&#160;    <a class="code" href="apt_8h.html#ac7b6d8df47829d778eb598e1cc52cc2a">apt_bool_t</a> (*<a class="code" href="structmrcp__session__request__vtable__t.html#a5e5e195013c6bcf140d746c2006a8b98">discover</a>)(<a class="code" href="structmrcp__session__t.html">mrcp_session_t</a> *session, <a class="code" href="structmrcp__session__descriptor__t.html">mrcp_session_descriptor_t</a> *descriptor);</div>
<div class="line"><a name="l00094"></a><span class="lineno">   94</span>&#160;};</div>
<div class="line"><a name="l00095"></a><span class="lineno">   95</span>&#160;<span class="comment"></span></div>
<div class="line"><a name="l00096"></a><span class="lineno">   96</span>&#160;<span class="comment">/** MRCP session response vtable */</span></div>
<div class="line"><a name="l00097"></a><span class="lineno"><a class="line" href="structmrcp__session__response__vtable__t.html">   97</a></span>&#160;<span class="keyword">struct </span><a class="code" href="structmrcp__session__response__vtable__t.html">mrcp_session_response_vtable_t</a> {<span class="comment"></span></div>
<div class="line"><a name="l00098"></a><span class="lineno">   98</span>&#160;<span class="comment">    /** Answer with remote session descriptor */</span></div>
<div class="line"><a name="l00099"></a><span class="lineno"><a class="line" href="structmrcp__session__response__vtable__t.html#a12007e1923ca62f512574a5f6f7854c6">   99</a></span>&#160;    <a class="code" href="apt_8h.html#ac7b6d8df47829d778eb598e1cc52cc2a">apt_bool_t</a> (*<a class="code" href="structmrcp__session__response__vtable__t.html#a12007e1923ca62f512574a5f6f7854c6">on_answer</a>)(<a class="code" href="structmrcp__session__t.html">mrcp_session_t</a> *session, <a class="code" href="structmrcp__session__descriptor__t.html">mrcp_session_descriptor_t</a> *descriptor);<span class="comment"></span></div>
<div class="line"><a name="l00100"></a><span class="lineno">  100</span>&#160;<span class="comment">    /** Session terminated */</span></div>
<div class="line"><a name="l00101"></a><span class="lineno"><a class="line" href="structmrcp__session__response__vtable__t.html#a231be75a640876c96b830f285f922d7e">  101</a></span>&#160;    <a class="code" href="apt_8h.html#ac7b6d8df47829d778eb598e1cc52cc2a">apt_bool_t</a> (*<a class="code" href="structmrcp__session__response__vtable__t.html#a231be75a640876c96b830f285f922d7e">on_terminate</a>)(<a class="code" href="structmrcp__session__t.html">mrcp_session_t</a> *session);<span class="comment"></span></div>
<div class="line"><a name="l00102"></a><span class="lineno">  102</span>&#160;<span class="comment">    /** Control session (MRCPv1 only) */</span></div>
<div class="line"><a name="l00103"></a><span class="lineno"><a class="line" href="structmrcp__session__response__vtable__t.html#aca58d380bbcc4926a12ae234e47843d5">  103</a></span>&#160;    <a class="code" href="apt_8h.html#ac7b6d8df47829d778eb598e1cc52cc2a">apt_bool_t</a> (*<a class="code" href="structmrcp__session__response__vtable__t.html#aca58d380bbcc4926a12ae234e47843d5">on_control</a>)(<a class="code" href="structmrcp__session__t.html">mrcp_session_t</a> *session, <a class="code" href="structmrcp__message__t.html">mrcp_message_t</a> *message);<span class="comment"></span></div>
<div class="line"><a name="l00104"></a><span class="lineno">  104</span>&#160;<span class="comment">    /** Response to resource discovery request */</span></div>
<div class="line"><a name="l00105"></a><span class="lineno"><a class="line" href="structmrcp__session__response__vtable__t.html#ac00c324c3296b5e164ffe5a0d333f12c">  105</a></span>&#160;    <a class="code" href="apt_8h.html#ac7b6d8df47829d778eb598e1cc52cc2a">apt_bool_t</a> (*<a class="code" href="structmrcp__session__response__vtable__t.html#ac00c324c3296b5e164ffe5a0d333f12c">on_discover</a>)(<a class="code" href="structmrcp__session__t.html">mrcp_session_t</a> *session, <a class="code" href="structmrcp__session__descriptor__t.html">mrcp_session_descriptor_t</a> *descriptor);</div>
<div class="line"><a name="l00106"></a><span class="lineno">  106</span>&#160;};</div>
<div class="line"><a name="l00107"></a><span class="lineno">  107</span>&#160;<span class="comment"></span></div>
<div class="line"><a name="l00108"></a><span class="lineno">  108</span>&#160;<span class="comment">/** MRCP session event vtable */</span></div>
<div class="line"><a name="l00109"></a><span class="lineno"><a class="line" href="structmrcp__session__event__vtable__t.html">  109</a></span>&#160;<span class="keyword">struct </span><a class="code" href="structmrcp__session__event__vtable__t.html">mrcp_session_event_vtable_t</a> {<span class="comment"></span></div>
<div class="line"><a name="l00110"></a><span class="lineno">  110</span>&#160;<span class="comment">    /** Received session termination event without appropriate request */</span></div>
<div class="line"><a name="l00111"></a><span class="lineno"><a class="line" href="structmrcp__session__event__vtable__t.html#acc6272cc69f92cf3eb94411eba7d2bd6">  111</a></span>&#160;    <a class="code" href="apt_8h.html#ac7b6d8df47829d778eb598e1cc52cc2a">apt_bool_t</a> (*<a class="code" href="structmrcp__session__event__vtable__t.html#acc6272cc69f92cf3eb94411eba7d2bd6">on_terminate</a>)(<a class="code" href="structmrcp__session__t.html">mrcp_session_t</a> *session);</div>
<div class="line"><a name="l00112"></a><span class="lineno">  112</span>&#160;};</div>
<div class="line"><a name="l00113"></a><span class="lineno">  113</span>&#160;</div>
<div class="line"><a name="l00114"></a><span class="lineno">  114</span>&#160;<span class="comment"></span></div>
<div class="line"><a name="l00115"></a><span class="lineno">  115</span>&#160;<span class="comment">/** Create new memory pool and allocate session object from the pool. */</span></div>
<div class="line"><a name="l00116"></a><span class="lineno">  116</span>&#160;<a class="code" href="mrcp_8h.html#aa090864b67aead2a1ffdefa43479180e">MRCP_DECLARE</a>(<a class="code" href="structmrcp__session__t.html">mrcp_session_t</a>*) <a class="code" href="mrcp__session_8h.html#a5715e44c8a10cad33fa08cf0fbb14c17">mrcp_session_create</a>(apr_size_t padding);</div>
<div class="line"><a name="l00117"></a><span class="lineno">  117</span>&#160;<span class="comment"></span></div>
<div class="line"><a name="l00118"></a><span class="lineno">  118</span>&#160;<span class="comment">/** Allocate session object from the provided memory pool. Take over the ownership of the pool, if take_ownership is TRUE */</span></div>
<div class="line"><a name="l00119"></a><span class="lineno">  119</span>&#160;<a class="code" href="mrcp_8h.html#aa090864b67aead2a1ffdefa43479180e">MRCP_DECLARE</a>(<a class="code" href="structmrcp__session__t.html">mrcp_session_t</a>*) <a class="code" href="mrcp__session_8h.html#ae5660f17ef1cd9e5f16d69cff142ff20">mrcp_session_create_ex</a>(apr_pool_t *pool, <a class="code" href="apt_8h.html#ac7b6d8df47829d778eb598e1cc52cc2a">apt_bool_t</a> take_ownership, apr_size_t padding);</div>
<div class="line"><a name="l00120"></a><span class="lineno">  120</span>&#160;<span class="comment"></span></div>
<div class="line"><a name="l00121"></a><span class="lineno">  121</span>&#160;<span class="comment">/** Destroy session and assosiated memory pool. */</span></div>
<div class="line"><a name="l00122"></a><span class="lineno">  122</span>&#160;<a class="code" href="mrcp_8h.html#aa090864b67aead2a1ffdefa43479180e">MRCP_DECLARE</a>(<span class="keywordtype">void</span>) <a class="code" href="mrcp__session_8h.html#a8fcd720dd3009b5e2c97471b50429de7">mrcp_session_destroy</a>(<a class="code" href="structmrcp__session__t.html">mrcp_session_t</a> *session);</div>
<div class="line"><a name="l00123"></a><span class="lineno">  123</span>&#160;</div>
<div class="line"><a name="l00124"></a><span class="lineno">  124</span>&#160;<span class="comment"></span></div>
<div class="line"><a name="l00125"></a><span class="lineno">  125</span>&#160;<span class="comment">/** Offer */</span></div>
<div class="line"><a name="l00126"></a><span class="lineno">  126</span>&#160;static APR_INLINE <a class="code" href="apt_8h.html#ac7b6d8df47829d778eb598e1cc52cc2a">apt_bool_t</a> mrcp_session_offer(<a class="code" href="structmrcp__session__t.html">mrcp_session_t</a> *session, <a class="code" href="structmrcp__session__descriptor__t.html">mrcp_session_descriptor_t</a> *descriptor)</div>
<div class="line"><a name="l00127"></a><span class="lineno">  127</span>&#160;{</div>
<div class="line"><a name="l00128"></a><span class="lineno">  128</span>&#160;    <span class="keywordflow">if</span>(session-&gt;request_vtable-&gt;offer) {</div>
<div class="line"><a name="l00129"></a><span class="lineno">  129</span>&#160;        <span class="keywordflow">return</span> session-&gt;request_vtable-&gt;offer(session,descriptor);</div>
<div class="line"><a name="l00130"></a><span class="lineno">  130</span>&#160;    }</div>
<div class="line"><a name="l00131"></a><span class="lineno">  131</span>&#160;    <span class="keywordflow">return</span> FALSE;</div>
<div class="line"><a name="l00132"></a><span class="lineno">  132</span>&#160;}</div>
<div class="line"><a name="l00133"></a><span class="lineno">  133</span>&#160;<span class="comment"></span></div>
<div class="line"><a name="l00134"></a><span class="lineno">  134</span>&#160;<span class="comment">/** Terminate */</span></div>
<div class="line"><a name="l00135"></a><span class="lineno">  135</span>&#160;<span class="keyword">static</span> APR_INLINE <a class="code" href="apt_8h.html#ac7b6d8df47829d778eb598e1cc52cc2a">apt_bool_t</a> mrcp_session_terminate_request(<a class="code" href="structmrcp__session__t.html">mrcp_session_t</a> *session)</div>
<div class="line"><a name="l00136"></a><span class="lineno">  136</span>&#160;{</div>
<div class="line"><a name="l00137"></a><span class="lineno">  137</span>&#160;    <span class="keywordflow">if</span>(session-&gt;<a class="code" href="structmrcp__session__t.html#a77782ad02fb5edff9a12037435fc4c6c">request_vtable</a>-&gt;<a class="code" href="structmrcp__session__request__vtable__t.html#a985124505396d6370b76c408cfbb8c80">terminate</a>) {</div>
<div class="line"><a name="l00138"></a><span class="lineno">  138</span>&#160;        <span class="keywordflow">return</span> session-&gt;<a class="code" href="structmrcp__session__t.html#a77782ad02fb5edff9a12037435fc4c6c">request_vtable</a>-&gt;<a class="code" href="structmrcp__session__request__vtable__t.html#a985124505396d6370b76c408cfbb8c80">terminate</a>(session);</div>
<div class="line"><a name="l00139"></a><span class="lineno">  139</span>&#160;    }</div>
<div class="line"><a name="l00140"></a><span class="lineno">  140</span>&#160;    <span class="keywordflow">return</span> FALSE;</div>
<div class="line"><a name="l00141"></a><span class="lineno">  141</span>&#160;}</div>
<div class="line"><a name="l00142"></a><span class="lineno">  142</span>&#160;<span class="comment"></span></div>
<div class="line"><a name="l00143"></a><span class="lineno">  143</span>&#160;<span class="comment">/** Answer */</span></div>
<div class="line"><a name="l00144"></a><span class="lineno">  144</span>&#160;<span class="keyword">static</span> APR_INLINE <a class="code" href="apt_8h.html#ac7b6d8df47829d778eb598e1cc52cc2a">apt_bool_t</a> mrcp_session_answer(<a class="code" href="structmrcp__session__t.html">mrcp_session_t</a> *session, <a class="code" href="structmrcp__session__descriptor__t.html">mrcp_session_descriptor_t</a> *descriptor)</div>
<div class="line"><a name="l00145"></a><span class="lineno">  145</span>&#160;{</div>
<div class="line"><a name="l00146"></a><span class="lineno">  146</span>&#160;    <span class="keywordflow">if</span>(session-&gt;<a class="code" href="structmrcp__session__t.html#a9b4b041b55d72e095f85622ca814a50e">response_vtable</a>-&gt;<a class="code" href="structmrcp__session__response__vtable__t.html#a12007e1923ca62f512574a5f6f7854c6">on_answer</a>) {</div>
<div class="line"><a name="l00147"></a><span class="lineno">  147</span>&#160;        <span class="keywordflow">return</span> session-&gt;<a class="code" href="structmrcp__session__t.html#a9b4b041b55d72e095f85622ca814a50e">response_vtable</a>-&gt;<a class="code" href="structmrcp__session__response__vtable__t.html#a12007e1923ca62f512574a5f6f7854c6">on_answer</a>(session,descriptor);</div>
<div class="line"><a name="l00148"></a><span class="lineno">  148</span>&#160;    }</div>
<div class="line"><a name="l00149"></a><span class="lineno">  149</span>&#160;    <span class="keywordflow">return</span> FALSE;</div>
<div class="line"><a name="l00150"></a><span class="lineno">  150</span>&#160;}</div>
<div class="line"><a name="l00151"></a><span class="lineno">  151</span>&#160;<span class="comment"></span></div>
<div class="line"><a name="l00152"></a><span class="lineno">  152</span>&#160;<span class="comment">/** On terminate response */</span></div>
<div class="line"><a name="l00153"></a><span class="lineno">  153</span>&#160;<span class="keyword">static</span> APR_INLINE <a class="code" href="apt_8h.html#ac7b6d8df47829d778eb598e1cc52cc2a">apt_bool_t</a> mrcp_session_terminate_response(<a class="code" href="structmrcp__session__t.html">mrcp_session_t</a> *session)</div>
<div class="line"><a name="l00154"></a><span class="lineno">  154</span>&#160;{</div>
<div class="line"><a name="l00155"></a><span class="lineno">  155</span>&#160;    <span class="keywordflow">if</span>(session-&gt;<a class="code" href="structmrcp__session__t.html#a9b4b041b55d72e095f85622ca814a50e">response_vtable</a>-&gt;<a class="code" href="structmrcp__session__response__vtable__t.html#a231be75a640876c96b830f285f922d7e">on_terminate</a>) {</div>
<div class="line"><a name="l00156"></a><span class="lineno">  156</span>&#160;        <span class="keywordflow">return</span> session-&gt;<a class="code" href="structmrcp__session__t.html#a9b4b041b55d72e095f85622ca814a50e">response_vtable</a>-&gt;<a class="code" href="structmrcp__session__response__vtable__t.html#a231be75a640876c96b830f285f922d7e">on_terminate</a>(session);</div>
<div class="line"><a name="l00157"></a><span class="lineno">  157</span>&#160;    }</div>
<div class="line"><a name="l00158"></a><span class="lineno">  158</span>&#160;    <span class="keywordflow">return</span> FALSE;</div>
<div class="line"><a name="l00159"></a><span class="lineno">  159</span>&#160;}</div>
<div class="line"><a name="l00160"></a><span class="lineno">  160</span>&#160;<span class="comment"></span></div>
<div class="line"><a name="l00161"></a><span class="lineno">  161</span>&#160;<span class="comment">/** On terminate event */</span></div>
<div class="line"><a name="l00162"></a><span class="lineno">  162</span>&#160;<span class="keyword">static</span> APR_INLINE <a class="code" href="apt_8h.html#ac7b6d8df47829d778eb598e1cc52cc2a">apt_bool_t</a> mrcp_session_terminate_event(<a class="code" href="structmrcp__session__t.html">mrcp_session_t</a> *session)</div>
<div class="line"><a name="l00163"></a><span class="lineno">  163</span>&#160;{</div>
<div class="line"><a name="l00164"></a><span class="lineno">  164</span>&#160;    <span class="keywordflow">if</span>(session-&gt;<a class="code" href="structmrcp__session__t.html#a77b1eda02559e457d480e3a679382db1">event_vtable</a>-&gt;<a class="code" href="structmrcp__session__event__vtable__t.html#acc6272cc69f92cf3eb94411eba7d2bd6">on_terminate</a>) {</div>
<div class="line"><a name="l00165"></a><span class="lineno">  165</span>&#160;        <span class="keywordflow">return</span> session-&gt;<a class="code" href="structmrcp__session__t.html#a77b1eda02559e457d480e3a679382db1">event_vtable</a>-&gt;<a class="code" href="structmrcp__session__event__vtable__t.html#acc6272cc69f92cf3eb94411eba7d2bd6">on_terminate</a>(session);</div>
<div class="line"><a name="l00166"></a><span class="lineno">  166</span>&#160;    }</div>
<div class="line"><a name="l00167"></a><span class="lineno">  167</span>&#160;    <span class="keywordflow">return</span> FALSE;</div>
<div class="line"><a name="l00168"></a><span class="lineno">  168</span>&#160;}</div>
<div class="line"><a name="l00169"></a><span class="lineno">  169</span>&#160;<span class="comment"></span></div>
<div class="line"><a name="l00170"></a><span class="lineno">  170</span>&#160;<span class="comment">/** Control request */</span></div>
<div class="line"><a name="l00171"></a><span class="lineno">  171</span>&#160;<span class="keyword">static</span> APR_INLINE <a class="code" href="apt_8h.html#ac7b6d8df47829d778eb598e1cc52cc2a">apt_bool_t</a> mrcp_session_control_request(<a class="code" href="structmrcp__session__t.html">mrcp_session_t</a> *session, <a class="code" href="structmrcp__message__t.html">mrcp_message_t</a> *message)</div>
<div class="line"><a name="l00172"></a><span class="lineno">  172</span>&#160;{</div>
<div class="line"><a name="l00173"></a><span class="lineno">  173</span>&#160;    <span class="keywordflow">if</span>(session-&gt;<a class="code" href="structmrcp__session__t.html#a77782ad02fb5edff9a12037435fc4c6c">request_vtable</a>-&gt;<a class="code" href="structmrcp__session__request__vtable__t.html#aa8c49314428ece1676bbb7b20f72292b">control</a>) {</div>
<div class="line"><a name="l00174"></a><span class="lineno">  174</span>&#160;        <span class="keywordflow">return</span> session-&gt;<a class="code" href="structmrcp__session__t.html#a77782ad02fb5edff9a12037435fc4c6c">request_vtable</a>-&gt;<a class="code" href="structmrcp__session__request__vtable__t.html#aa8c49314428ece1676bbb7b20f72292b">control</a>(session,message);</div>
<div class="line"><a name="l00175"></a><span class="lineno">  175</span>&#160;    }</div>
<div class="line"><a name="l00176"></a><span class="lineno">  176</span>&#160;    <span class="keywordflow">return</span> FALSE;</div>
<div class="line"><a name="l00177"></a><span class="lineno">  177</span>&#160;}</div>
<div class="line"><a name="l00178"></a><span class="lineno">  178</span>&#160;<span class="comment"></span></div>
<div class="line"><a name="l00179"></a><span class="lineno">  179</span>&#160;<span class="comment">/** On control response/event */</span></div>
<div class="line"><a name="l00180"></a><span class="lineno">  180</span>&#160;<span class="keyword">static</span> APR_INLINE <a class="code" href="apt_8h.html#ac7b6d8df47829d778eb598e1cc52cc2a">apt_bool_t</a> mrcp_session_control_response(<a class="code" href="structmrcp__session__t.html">mrcp_session_t</a> *session, <a class="code" href="structmrcp__message__t.html">mrcp_message_t</a> *message)</div>
<div class="line"><a name="l00181"></a><span class="lineno">  181</span>&#160;{</div>
<div class="line"><a name="l00182"></a><span class="lineno">  182</span>&#160;    <span class="keywordflow">if</span>(session-&gt;<a class="code" href="structmrcp__session__t.html#a9b4b041b55d72e095f85622ca814a50e">response_vtable</a>-&gt;<a class="code" href="structmrcp__session__response__vtable__t.html#aca58d380bbcc4926a12ae234e47843d5">on_control</a>) {</div>
<div class="line"><a name="l00183"></a><span class="lineno">  183</span>&#160;        <span class="keywordflow">return</span> session-&gt;<a class="code" href="structmrcp__session__t.html#a9b4b041b55d72e095f85622ca814a50e">response_vtable</a>-&gt;<a class="code" href="structmrcp__session__response__vtable__t.html#aca58d380bbcc4926a12ae234e47843d5">on_control</a>(session,message);</div>
<div class="line"><a name="l00184"></a><span class="lineno">  184</span>&#160;    }</div>
<div class="line"><a name="l00185"></a><span class="lineno">  185</span>&#160;    <span class="keywordflow">return</span> FALSE;</div>
<div class="line"><a name="l00186"></a><span class="lineno">  186</span>&#160;}</div>
<div class="line"><a name="l00187"></a><span class="lineno">  187</span>&#160;<span class="comment"></span></div>
<div class="line"><a name="l00188"></a><span class="lineno">  188</span>&#160;<span class="comment">/** Resource discovery request */</span></div>
<div class="line"><a name="l00189"></a><span class="lineno">  189</span>&#160;<span class="keyword">static</span> APR_INLINE <a class="code" href="apt_8h.html#ac7b6d8df47829d778eb598e1cc52cc2a">apt_bool_t</a> mrcp_session_discover_request(<a class="code" href="structmrcp__session__t.html">mrcp_session_t</a> *session, <a class="code" href="structmrcp__session__descriptor__t.html">mrcp_session_descriptor_t</a> *descriptor)</div>
<div class="line"><a name="l00190"></a><span class="lineno">  190</span>&#160;{</div>
<div class="line"><a name="l00191"></a><span class="lineno">  191</span>&#160;    <span class="keywordflow">if</span>(session-&gt;<a class="code" href="structmrcp__session__t.html#a77782ad02fb5edff9a12037435fc4c6c">request_vtable</a>-&gt;<a class="code" href="structmrcp__session__request__vtable__t.html#a5e5e195013c6bcf140d746c2006a8b98">discover</a>) {</div>
<div class="line"><a name="l00192"></a><span class="lineno">  192</span>&#160;        <span class="keywordflow">return</span> session-&gt;<a class="code" href="structmrcp__session__t.html#a77782ad02fb5edff9a12037435fc4c6c">request_vtable</a>-&gt;<a class="code" href="structmrcp__session__request__vtable__t.html#a5e5e195013c6bcf140d746c2006a8b98">discover</a>(session,descriptor);</div>
<div class="line"><a name="l00193"></a><span class="lineno">  193</span>&#160;    }</div>
<div class="line"><a name="l00194"></a><span class="lineno">  194</span>&#160;    <span class="keywordflow">return</span> FALSE;</div>
<div class="line"><a name="l00195"></a><span class="lineno">  195</span>&#160;}</div>
<div class="line"><a name="l00196"></a><span class="lineno">  196</span>&#160;<span class="comment"></span></div>
<div class="line"><a name="l00197"></a><span class="lineno">  197</span>&#160;<span class="comment">/** On resource discovery response */</span></div>
<div class="line"><a name="l00198"></a><span class="lineno">  198</span>&#160;<span class="keyword">static</span> APR_INLINE <a class="code" href="apt_8h.html#ac7b6d8df47829d778eb598e1cc52cc2a">apt_bool_t</a> mrcp_session_discover_response(<a class="code" href="structmrcp__session__t.html">mrcp_session_t</a> *session, <a class="code" href="structmrcp__session__descriptor__t.html">mrcp_session_descriptor_t</a> *descriptor)</div>
<div class="line"><a name="l00199"></a><span class="lineno">  199</span>&#160;{</div>
<div class="line"><a name="l00200"></a><span class="lineno">  200</span>&#160;    <span class="keywordflow">if</span>(session-&gt;<a class="code" href="structmrcp__session__t.html#a9b4b041b55d72e095f85622ca814a50e">response_vtable</a>-&gt;<a class="code" href="structmrcp__session__response__vtable__t.html#ac00c324c3296b5e164ffe5a0d333f12c">on_discover</a>) {</div>
<div class="line"><a name="l00201"></a><span class="lineno">  201</span>&#160;        <span class="keywordflow">return</span> session-&gt;<a class="code" href="structmrcp__session__t.html#a9b4b041b55d72e095f85622ca814a50e">response_vtable</a>-&gt;<a class="code" href="structmrcp__session__response__vtable__t.html#ac00c324c3296b5e164ffe5a0d333f12c">on_discover</a>(session,descriptor);</div>
<div class="line"><a name="l00202"></a><span class="lineno">  202</span>&#160;    }</div>
<div class="line"><a name="l00203"></a><span class="lineno">  203</span>&#160;    <span class="keywordflow">return</span> FALSE;</div>
<div class="line"><a name="l00204"></a><span class="lineno">  204</span>&#160;}</div>
<div class="line"><a name="l00205"></a><span class="lineno">  205</span>&#160;</div>
<div class="line"><a name="l00206"></a><span class="lineno">  206</span>&#160;<a class="code" href="apt_8h.html#a432919823b38eb7e2b6fa2b544fb1644">APT_END_EXTERN_C</a></div>
<div class="line"><a name="l00207"></a><span class="lineno">  207</span>&#160;</div>
<div class="line"><a name="l00208"></a><span class="lineno">  208</span>&#160;<span class="preprocessor">#endif </span><span class="comment">/* MRCP_SESSION_H */</span><span class="preprocessor"></span></div>
<div class="ttc" id="mrcp_8h_html_aa090864b67aead2a1ffdefa43479180e"><div class="ttname"><a href="mrcp_8h.html#aa090864b67aead2a1ffdefa43479180e">MRCP_DECLARE</a></div><div class="ttdeci">#define MRCP_DECLARE(type)</div><div class="ttdef"><b>Definition:</b> mrcp.h:40</div></div>
<div class="ttc" id="structmrcp__session__t_html"><div class="ttname"><a href="structmrcp__session__t.html">mrcp_session_t</a></div><div class="ttdef"><b>Definition:</b> mrcp_session.h:49</div></div>
<div class="ttc" id="structmrcp__session__t_html_ab553b6c063bf1e619a80cf9319dab681"><div class="ttname"><a href="structmrcp__session__t.html#ab553b6c063bf1e619a80cf9319dab681">mrcp_session_t::name</a></div><div class="ttdeci">const char * name</div><div class="ttdef"><b>Definition:</b> mrcp_session.h:59</div></div>
<div class="ttc" id="structmrcp__session__t_html_a7d521769ff50b571a2c2c872f0b07a2b"><div class="ttname"><a href="structmrcp__session__t.html#a7d521769ff50b571a2c2c872f0b07a2b">mrcp_session_t::rtp_factory</a></div><div class="ttdeci">mpf_termination_factory_t * rtp_factory</div><div class="ttdef"><b>Definition:</b> mrcp_session.h:68</div></div>
<div class="ttc" id="structmrcp__session__request__vtable__t_html"><div class="ttname"><a href="structmrcp__session__request__vtable__t.html">mrcp_session_request_vtable_t</a></div><div class="ttdef"><b>Definition:</b> mrcp_session.h:85</div></div>
<div class="ttc" id="structmrcp__session__t_html_a77b1eda02559e457d480e3a679382db1"><div class="ttname"><a href="structmrcp__session__t.html#a77b1eda02559e457d480e3a679382db1">mrcp_session_t::event_vtable</a></div><div class="ttdeci">const mrcp_session_event_vtable_t * event_vtable</div><div class="ttdef"><b>Definition:</b> mrcp_session.h:80</div></div>
<div class="ttc" id="structmrcp__session__t_html_a425d72d01799006ae560a8e27ad61773"><div class="ttname"><a href="structmrcp__session__t.html#a425d72d01799006ae560a8e27ad61773">mrcp_session_t::pool</a></div><div class="ttdeci">apr_pool_t * pool</div><div class="ttdef"><b>Definition:</b> mrcp_session.h:51</div></div>
<div class="ttc" id="structmrcp__session__request__vtable__t_html_a5e5e195013c6bcf140d746c2006a8b98"><div class="ttname"><a href="structmrcp__session__request__vtable__t.html#a5e5e195013c6bcf140d746c2006a8b98">mrcp_session_request_vtable_t::discover</a></div><div class="ttdeci">apt_bool_t(* discover)(mrcp_session_t *session, mrcp_session_descriptor_t *descriptor)</div><div class="ttdef"><b>Definition:</b> mrcp_session.h:93</div></div>
<div class="ttc" id="apt_8h_html_a432919823b38eb7e2b6fa2b544fb1644"><div class="ttname"><a href="apt_8h.html#a432919823b38eb7e2b6fa2b544fb1644">APT_END_EXTERN_C</a></div><div class="ttdeci">#define APT_END_EXTERN_C</div><div class="ttdef"><b>Definition:</b> apt.h:38</div></div>
<div class="ttc" id="structmrcp__session__t_html_a9b4b041b55d72e095f85622ca814a50e"><div class="ttname"><a href="structmrcp__session__t.html#a9b4b041b55d72e095f85622ca814a50e">mrcp_session_t::response_vtable</a></div><div class="ttdeci">const mrcp_session_response_vtable_t * response_vtable</div><div class="ttdef"><b>Definition:</b> mrcp_session.h:78</div></div>
<div class="ttc" id="apt_8h_html_ac7b6d8df47829d778eb598e1cc52cc2a"><div class="ttname"><a href="apt_8h.html#ac7b6d8df47829d778eb598e1cc52cc2a">apt_bool_t</a></div><div class="ttdeci">int apt_bool_t</div><div class="ttdef"><b>Definition:</b> apt.h:57</div></div>
<div class="ttc" id="structmrcp__session__t_html_a6dd01b010912fcff7b9a3f355b543733"><div class="ttname"><a href="structmrcp__session__t.html#a6dd01b010912fcff7b9a3f355b543733">mrcp_session_t::connection_agent</a></div><div class="ttdeci">void * connection_agent</div><div class="ttdef"><b>Definition:</b> mrcp_session.h:64</div></div>
<div class="ttc" id="structmrcp__session__t_html_a18bf8d2c47f2ed1d0b0effe5f7298e0d"><div class="ttname"><a href="structmrcp__session__t.html#a18bf8d2c47f2ed1d0b0effe5f7298e0d">mrcp_session_t::obj</a></div><div class="ttdeci">void * obj</div><div class="ttdef"><b>Definition:</b> mrcp_session.h:55</div></div>
<div class="ttc" id="structmrcp__session__request__vtable__t_html_ada6b51fcc9d516322c93cbef2781c1b9"><div class="ttname"><a href="structmrcp__session__request__vtable__t.html#ada6b51fcc9d516322c93cbef2781c1b9">mrcp_session_request_vtable_t::offer</a></div><div class="ttdeci">apt_bool_t(* offer)(mrcp_session_t *session, mrcp_session_descriptor_t *descriptor)</div><div class="ttdef"><b>Definition:</b> mrcp_session.h:87</div></div>
<div class="ttc" id="mpf__types_8h_html_ad09bd8504c5367e458c1d0d19b4aa17e"><div class="ttname"><a href="mpf__types_8h.html#ad09bd8504c5367e458c1d0d19b4aa17e">mpf_engine_t</a></div><div class="ttdeci">typedefAPT_BEGIN_EXTERN_C struct mpf_engine_t mpf_engine_t</div><div class="ttdef"><b>Definition:</b> mpf_types.h:30</div></div>
<div class="ttc" id="structmrcp__session__response__vtable__t_html"><div class="ttname"><a href="structmrcp__session__response__vtable__t.html">mrcp_session_response_vtable_t</a></div><div class="ttdef"><b>Definition:</b> mrcp_session.h:97</div></div>
<div class="ttc" id="apt_8h_html_ad3d792bfc75893affad257781ea46e55"><div class="ttname"><a href="apt_8h.html#ad3d792bfc75893affad257781ea46e55">APT_BEGIN_EXTERN_C</a></div><div class="ttdeci">#define APT_BEGIN_EXTERN_C</div><div class="ttdef"><b>Definition:</b> apt.h:36</div></div>
<div class="ttc" id="mrcp__session_8h_html_a5715e44c8a10cad33fa08cf0fbb14c17"><div class="ttname"><a href="mrcp__session_8h.html#a5715e44c8a10cad33fa08cf0fbb14c17">mrcp_session_create</a></div><div class="ttdeci">mrcp_session_t * mrcp_session_create(apr_size_t padding)</div></div>
<div class="ttc" id="structmpf__termination__factory__t_html"><div class="ttname"><a href="structmpf__termination__factory__t.html">mpf_termination_factory_t</a></div><div class="ttdef"><b>Definition:</b> mpf_termination_factory.h:30</div></div>
<div class="ttc" id="structmrcp__session__t_html_a0bb429af973c2ddf7e641158ae137222"><div class="ttname"><a href="structmrcp__session__t.html#a0bb429af973c2ddf7e641158ae137222">mrcp_session_t::media_engine</a></div><div class="ttdeci">mpf_engine_t * media_engine</div><div class="ttdef"><b>Definition:</b> mrcp_session.h:66</div></div>
<div class="ttc" id="mpf__types_8h_html"><div class="ttname"><a href="mpf__types_8h.html">mpf_types.h</a></div><div class="ttdoc">MPF Types Declarations. </div></div>
<div class="ttc" id="structmrcp__session__t_html_a7c6859deb48d119ff30cd1abeede0b99"><div class="ttname"><a href="structmrcp__session__t.html#a7c6859deb48d119ff30cd1abeede0b99">mrcp_session_t::self_owned</a></div><div class="ttdeci">apt_bool_t self_owned</div><div class="ttdef"><b>Definition:</b> mrcp_session.h:53</div></div>
<div class="ttc" id="mrcp__sig__types_8h_html"><div class="ttname"><a href="mrcp__sig__types_8h.html">mrcp_sig_types.h</a></div><div class="ttdoc">MRCP Signaling Types Declaration. </div></div>
<div class="ttc" id="structmrcp__session__response__vtable__t_html_ac00c324c3296b5e164ffe5a0d333f12c"><div class="ttname"><a href="structmrcp__session__response__vtable__t.html#ac00c324c3296b5e164ffe5a0d333f12c">mrcp_session_response_vtable_t::on_discover</a></div><div class="ttdeci">apt_bool_t(* on_discover)(mrcp_session_t *session, mrcp_session_descriptor_t *descriptor)</div><div class="ttdef"><b>Definition:</b> mrcp_session.h:105</div></div>
<div class="ttc" id="structmrcp__session__response__vtable__t_html_aca58d380bbcc4926a12ae234e47843d5"><div class="ttname"><a href="structmrcp__session__response__vtable__t.html#aca58d380bbcc4926a12ae234e47843d5">mrcp_session_response_vtable_t::on_control</a></div><div class="ttdeci">apt_bool_t(* on_control)(mrcp_session_t *session, mrcp_message_t *message)</div><div class="ttdef"><b>Definition:</b> mrcp_session.h:103</div></div>
<div class="ttc" id="structmrcp__sig__agent__t_html"><div class="ttname"><a href="structmrcp__sig__agent__t.html">mrcp_sig_agent_t</a></div><div class="ttdef"><b>Definition:</b> mrcp_sig_agent.h:52</div></div>
<div class="ttc" id="structmrcp__session__request__vtable__t_html_aa8c49314428ece1676bbb7b20f72292b"><div class="ttname"><a href="structmrcp__session__request__vtable__t.html#aa8c49314428ece1676bbb7b20f72292b">mrcp_session_request_vtable_t::control</a></div><div class="ttdeci">apt_bool_t(* control)(mrcp_session_t *session, mrcp_message_t *message)</div><div class="ttdef"><b>Definition:</b> mrcp_session.h:91</div></div>
<div class="ttc" id="structmrcp__session__event__vtable__t_html_acc6272cc69f92cf3eb94411eba7d2bd6"><div class="ttname"><a href="structmrcp__session__event__vtable__t.html#acc6272cc69f92cf3eb94411eba7d2bd6">mrcp_session_event_vtable_t::on_terminate</a></div><div class="ttdeci">apt_bool_t(* on_terminate)(mrcp_session_t *session)</div><div class="ttdef"><b>Definition:</b> mrcp_session.h:111</div></div>
<div class="ttc" id="structmrcp__session__request__vtable__t_html_a985124505396d6370b76c408cfbb8c80"><div class="ttname"><a href="structmrcp__session__request__vtable__t.html#a985124505396d6370b76c408cfbb8c80">mrcp_session_request_vtable_t::terminate</a></div><div class="ttdeci">apt_bool_t(* terminate)(mrcp_session_t *session)</div><div class="ttdef"><b>Definition:</b> mrcp_session.h:89</div></div>
<div class="ttc" id="structmrcp__session__response__vtable__t_html_a231be75a640876c96b830f285f922d7e"><div class="ttname"><a href="structmrcp__session__response__vtable__t.html#a231be75a640876c96b830f285f922d7e">mrcp_session_response_vtable_t::on_terminate</a></div><div class="ttdeci">apt_bool_t(* on_terminate)(mrcp_session_t *session)</div><div class="ttdef"><b>Definition:</b> mrcp_session.h:101</div></div>
<div class="ttc" id="structmrcp__session__response__vtable__t_html_a12007e1923ca62f512574a5f6f7854c6"><div class="ttname"><a href="structmrcp__session__response__vtable__t.html#a12007e1923ca62f512574a5f6f7854c6">mrcp_session_response_vtable_t::on_answer</a></div><div class="ttdeci">apt_bool_t(* on_answer)(mrcp_session_t *session, mrcp_session_descriptor_t *descriptor)</div><div class="ttdef"><b>Definition:</b> mrcp_session.h:99</div></div>
<div class="ttc" id="mrcp__session_8h_html_a8fcd720dd3009b5e2c97471b50429de7"><div class="ttname"><a href="mrcp__session_8h.html#a8fcd720dd3009b5e2c97471b50429de7">mrcp_session_destroy</a></div><div class="ttdeci">void mrcp_session_destroy(mrcp_session_t *session)</div></div>
<div class="ttc" id="structmrcp__session__t_html_a2be2e6162a3f8be7c373b8b5150502a3"><div class="ttname"><a href="structmrcp__session__t.html#a2be2e6162a3f8be7c373b8b5150502a3">mrcp_session_t::signaling_agent</a></div><div class="ttdeci">mrcp_sig_agent_t * signaling_agent</div><div class="ttdef"><b>Definition:</b> mrcp_session.h:62</div></div>
<div class="ttc" id="structapt__str__t_html"><div class="ttname"><a href="structapt__str__t.html">apt_str_t</a></div><div class="ttdef"><b>Definition:</b> apt_string.h:36</div></div>
<div class="ttc" id="structmrcp__session__event__vtable__t_html"><div class="ttname"><a href="structmrcp__session__event__vtable__t.html">mrcp_session_event_vtable_t</a></div><div class="ttdef"><b>Definition:</b> mrcp_session.h:109</div></div>
<div class="ttc" id="structmrcp__session__t_html_a77782ad02fb5edff9a12037435fc4c6c"><div class="ttname"><a href="structmrcp__session__t.html#a77782ad02fb5edff9a12037435fc4c6c">mrcp_session_t::request_vtable</a></div><div class="ttdeci">const mrcp_session_request_vtable_t * request_vtable</div><div class="ttdef"><b>Definition:</b> mrcp_session.h:76</div></div>
<div class="ttc" id="structmrcp__session__descriptor__t_html"><div class="ttname"><a href="structmrcp__session__descriptor__t.html">mrcp_session_descriptor_t</a></div><div class="ttdef"><b>Definition:</b> mrcp_session_descriptor.h:40</div></div>
<div class="ttc" id="mrcp__session_8h_html_ae5660f17ef1cd9e5f16d69cff142ff20"><div class="ttname"><a href="mrcp__session_8h.html#ae5660f17ef1cd9e5f16d69cff142ff20">mrcp_session_create_ex</a></div><div class="ttdeci">mrcp_session_t * mrcp_session_create_ex(apr_pool_t *pool, apt_bool_t take_ownership, apr_size_t padding)</div></div>
<div class="ttc" id="structmrcp__session__t_html_ab91d428ad19a1635c34fc42af93f4a49"><div class="ttname"><a href="structmrcp__session__t.html#ab91d428ad19a1635c34fc42af93f4a49">mrcp_session_t::last_request_id</a></div><div class="ttdeci">mrcp_request_id last_request_id</div><div class="ttdef"><b>Definition:</b> mrcp_session.h:73</div></div>
<div class="ttc" id="structmrcp__session__t_html_a10e754ae08933f85ffb74a4410578884"><div class="ttname"><a href="structmrcp__session__t.html#a10e754ae08933f85ffb74a4410578884">mrcp_session_t::id</a></div><div class="ttdeci">apt_str_t id</div><div class="ttdef"><b>Definition:</b> mrcp_session.h:71</div></div>
<div class="ttc" id="apt__string_8h_html"><div class="ttname"><a href="apt__string_8h.html">apt_string.h</a></div><div class="ttdoc">String Representation. </div></div>
<div class="ttc" id="mrcp__types_8h_html_ae3b886f13ee1aaa73314f299828e69d1"><div class="ttname"><a href="mrcp__types_8h.html#ae3b886f13ee1aaa73314f299828e69d1">mrcp_request_id</a></div><div class="ttdeci">apr_uint32_t mrcp_request_id</div><div class="ttdef"><b>Definition:</b> mrcp_types.h:59</div></div>
<div class="ttc" id="structmrcp__session__t_html_a480aca1554ad893e685f8ced2f37b3a2"><div class="ttname"><a href="structmrcp__session__t.html#a480aca1554ad893e685f8ced2f37b3a2">mrcp_session_t::log_obj</a></div><div class="ttdeci">void * log_obj</div><div class="ttdef"><b>Definition:</b> mrcp_session.h:57</div></div>
<div class="ttc" id="structmrcp__message__t_html"><div class="ttname"><a href="structmrcp__message__t.html">mrcp_message_t</a></div><div class="ttdef"><b>Definition:</b> mrcp_message.h:37</div></div>
</div><!-- fragment --></div><!-- contents -->
<!-- start footer part -->
<hr class="footer"/><address class="footer"><small>
Generated on Tue Aug 22 2017 10:11:48 for UniMRCP by &#160;<a href="http://www.doxygen.org/index.html">
<img class="footer" src="doxygen.png" alt="doxygen"/>
</a> 1.8.6
</small></address>
</body>
</html>
